package com.dkm.ec.activity.persistence.entity;

import com.dkm.base.db.persistence.entity.AbstractPo;
import com.dkm.biz.ou.persistence.entity.ShopPo;
import com.dkm.ec.product.persistence.entity.ProductEntityPo;

import java.util.Date;
import java.util.List;

/**
 * 通用活动参与管理Entity
 * @author fjy
 * @version 2017-08-11
 */
public class CommonActivityPartinPo extends AbstractPo<String> {
	
	private static final long serialVersionUID = 1L;
	private String id; //主键
	private String commonactivityid;		// 通用活动, 引common_actvity_config 表id
	private String productid;		// 产品id，引t_prod_entity表主键
	private String shopid;		// 参与店铺, 引t_ou_shop 表主键
	private Date partintime;		// 参与时间


	//just for display
	private ProductEntityPo product; //产品实体
	private ShopPo shopPo; // 店铺

	private List<CommonActivitySkuPo> skuPoList; //sku列表
	
	public CommonActivityPartinPo() {
		super();
	}

	public CommonActivityPartinPo(String id){
		this.id = id;
	}

	public String getCommonactivityid() {
		return commonactivityid;
	}

	public void setCommonactivityid(String commonactivityid) {
		this.commonactivityid = commonactivityid;
	}

	public String getProductid() {
		return productid;
	}

	public void setProductid(String productid) {
		this.productid = productid;
	}
	
	public String getShopid() {
		return shopid;
	}

	public void setShopid(String shopid) {
		this.shopid = shopid;
	}
	
	public Date getPartintime() {
		return partintime;
	}

	public void setPartintime(Date partintime) {
		this.partintime = partintime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public ProductEntityPo getProduct() {
		return product;
	}

	public void setProduct(ProductEntityPo product) {
		this.product = product;
	}

	public List<CommonActivitySkuPo> getSkuPoList() {
		return skuPoList;
	}

	public void setSkuPoList(List<CommonActivitySkuPo> skuPoList) {
		this.skuPoList = skuPoList;
	}

	public ShopPo getShopPo() {
		return shopPo;
	}

	public void setShopPo(ShopPo shopPo) {
		this.shopPo = shopPo;
	}
}